package huawei_nowcoder;

import java.util.Scanner;

/**
 * @order  12
 * @decription 字符串反转
 */
public class StringReverse {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String str=scanner.nextLine();

        char[] chars=str.toCharArray();
        StringBuffer stringBuffer=new StringBuffer();
        for (int i = 0; i < str.length(); i++) {
            stringBuffer.append(chars[str.length()-1-i]);
        }
        System.out.println(stringBuffer.toString());
    }
}
